package com.example.dirviesystem.repository;

import com.example.dirviesystem.entity.CoachInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface CoachInfoRe extends JpaRepository<CoachInfo, Long>, JpaSpecificationExecutor<CoachInfo> {


    List<CoachInfo> findAllByDrivingTypeCode(String drivingType);

    CoachInfo findByIdNumberAndPassword(String username, String password);


}
